home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-07 | 2.5 KB | 71 lines | [TEXT/ttxt] |
-
- Installing Caml Light
- on a Macintosh
-
-
- There are two Caml Light systems for the Macintosh:
-
- - A standalone application, which does not need MPW to run.
- You only have the toplevel in this application: no separate compilation,
- and no lexer and parser generators.
- The application provides a graphics window and functions for drawing
- in this window.
-
- - A set of MPW tools and scripts, which needs MPW (version 3.2) to run.
- MPW is a programming environment sold by Apple.
- These tools allow you to write MPW tools in Caml Light, and use the
- parser generator and the lexer generator. They are used for bootstrapping
- Caml Light itself. Graphics primitives are not available under MPW.
-
-
- INSTALLING THE STANDALONE APPLICATION ONLY:
-
- This section describes how to install Caml Light if you do not have MPW.
-
- You can install the application on a hard disk or on a floppy disk.
- It takes less than 800 kB of disk space.
-
- 1. Copy the "Caml Light" application and the "lib" folder to your hard disk
- (or a floppy disk). They must reside in the same folder.
-
- 2. (Optional) Remove from the "lib" folder all files not ending in ".zi".
-
- That's all. You can now double-click the application.
-
- If you see the line:
-
- > Cannot find file stream.zi
-
- in the "Caml Light output" window, and a dialog box saying:
-
- "Caml Light terminated abnormally",
-
- this means you did not put the "lib" folder beside the "Caml Light"
- application. Go back to step 1.
-
-
- INSTALLING THE MPW TOOLS AND THE APPLICATION:
-
- This section describes how to install Caml Light if you have MPW.
-
- 1. Copy the "Caml Light" application and the "lib" folder to your hard disk.
- They must reside in the same folder.
-
- 2. Copy the tools and scripts from the "tools" folder to your hard disk.
- They must be in a place where MPW will find them as commands.
- There are two ways to achieve this result:
- a. You can copy them to the "Tools" or the "Scripts" folder in
- your MPW folder.
- b. You can keep them in a separate folder, say "camltools", and add
- the following line to your "UserStartup" file (assuming your disk
- is named "My HD"):
-
- Set Commands "{Commands},My HD:camltools:"
-
- 3. Edit the "camlc" script, and replace "MacAdam:Caml Light:CL61:lib:"
- (in the second line) with the pathname of the "lib" folder.
- For example, if you put the "lib" folder directly
- in your hard disk, the first line of "camlc" would read:
-
- Set stdlib "My HD:lib:"
-